package org.ar.gameserver.common.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class PropertiesUtils {
	
	private static Properties properties = new Properties();
	
	public static void load(String propertyUrl) throws IOException {
		InputStream in = null;
		try {
			in = PropertiesUtils.class.getResourceAsStream(propertyUrl);
			properties.load(in);
		} catch (IOException e) {
			throw e;
		} finally {
			if(in != null){
				in.close();
			}
		}
	}
	
	public static String getProperty(String key) throws Exception {
		return properties.getProperty(key);
	}
}
